/**
 * 
 */
package com.cnhaimei.vod.net.dc.state;

import com.cnhaimei.vod.net.dc.DCStateData;

/**
 * 	音量大小，取值0~100；
 * 
 * @author jin001.wu@gmail.com <br>
 * @date 2011-7-15
 * 
 */
public class AudioState extends DCStateData {
	public static final int MIN_VOLUME = 0;
	public static final int MAX_VOLUME = 100;

	public AudioState() {
		super(STATE.EVOD_AUDIO_VOLUME_STATE);
	}

	public void setVolume(int volume) {
		value = volume;
	}

	public int getVolume() {
		return value;
	}

	public static boolean isAvalibeVolume(int volume) {
		return (volume >= MIN_VOLUME && volume <= MAX_VOLUME);
	}

}
